#ifndef _sysexception_h_
#define _sysexception_h_
#include <iostream>
#include <string>

class CSysException {
private:
	std::string error;
	int error_num;
public:
	std::string getError() const
	{
		return error;
	}
	int getErrorNum() const
	{
		return error_num;
	}
	CSysException(std::string str){
		error = str;
	}
	CSysException(std::string str, int error_num){
		error = str;
		this->error_num = error_num;
	}
	~CSysException(){}
	void print(){
		std::cout << "ERROR: " << error << "!" << std::endl;
	}
};
#endif
